package com.kyecloud.common.model;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Response<T> implements Serializable{

	private Integer code = 200;
	private String success = "SUCCESS";
	private String message;
	private T result;
	private Object extend;
	
	public Response() {
		super();
	}

	public Response(Integer code,String success){
		this.code = code;
		this.success = success;
	}
	
	public Response(Integer code,String success,String message){
		this.code = code;
		this.success = success;
		this.message = message;
	}
	
	public Response(Integer code,String success,T result){
		this.code = code;
		this.success = success;
		this.result = result;
	}
	
	public Response(Integer code, String success, String message, T result, Object extend) {
		super();
		this.code = code;
		this.success = success;
		this.message = message;
		this.result = result;
		this.extend = extend;
	}

	public final Integer getCode() {
		return code;
	}
	public final void setCode(Integer code) {
		this.code = code;
	}
	public final String getSuccess() {
		return success;
	}
	public final void setSuccess(String success) {
		this.success = success;
	}
	public final String getMessage() {
		return message;
	}
	public final void setMessage(String message) {
		this.message = message;
	}
	public final T getResult() {
		return result;
	}
	public final void setResult(T result) {
		this.result = result;
	}
	public final Object getExtend() {
		return extend;
	}
	public final void setExtend(Object extend) {
		this.extend = extend;
	} 
	
}
